<?php

namespace app\index\validate;

use think\Validate;

class Link extends Validate
{
    protected $rule = [
        'web_name' =>  'require',
        'web_description' => 'require',
        'web_href' => 'url|require',
    ];
    protected $message = [
      'web_name.require' => '网页名称不能为空',
      'web_description.require' => '网页描述不能为空',
      'web_href.require' => '网页链接不能为空',
      'web_href.url' => '当前网页链接非URL链接(查看是否域名前添加  http://  )',
    ];
    
}